package com.lagou.edu.dao;

import com.lagou.edu.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface UserDao extends JpaRepository<User, Long>{

    /**
     * 验证账户、密码
     */
    public List<User> findUserByEmailAndPassword(String email, String password);


    /**
     * 根据邮箱查询
     */
    public List<User> findUserByEmail(String email);

}
